Previous | Index | Next |

Reversible container

If the iterator type of a container belongs to the bidirectional or random access iterator categories, the container is called reversible and satisfies the following additional requirements:

The reversible container requirements are defined in the ReversibleContainer api interface.

Reversible container requirements (in addition to container)
expression return type operation sementics complexity
a.rbegin() ReverseIterator ReverseIterator(end()) constant
a.rbeginRef() ReverseIterator ReverseIterator(endRef()) constant
a.rbeginGeneric() Iterator ReverseIterator(end()) constant
a.rend() ReverseIterator ReverseIterator(begin()) constant
a.rendRef() ReverseIterator ReverseIterator(beginRef()) constant
a.rendGeneric() Iterator ReverseIterator(begin()) constant


Previous | Index | Next |